package com.youdoneed.news.news.dao;

import org.apache.ibatis.annotations.Mapper;

import com.youdoneed.news.news.entity.CmfAuthorRelation;
import com.youdoneed.news.news.entity.CmfPostsWithBLOBs;

@Mapper
public interface CmfAuthorRelationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CmfAuthorRelation record);

    int insertSelective(CmfAuthorRelation record);

    CmfAuthorRelation selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CmfAuthorRelation record);

    int updateByPrimaryKey(CmfAuthorRelation record);
    /**
     * 获取文章与作者对应关系
     * @param postsList
     * @return
     */
    CmfAuthorRelation getAuthorRel(Long postsId);
}